<%@ page contentType="text/html; charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="/css/default.css" type="text/css" />
<title>终端出库</title>
<script language="javascript">
  function queryDept(){
     window.open('/mobile/queryDept.jsp','选择部门','resizable=no,scrollbars=yes,status=no,toolbar=no,menu=no,width=500,height=600,left=150,top=50');
  }
  function test(){
	  alert(1);
  }
  function selectMob(mi,mn){
	  //var frm =window.parent.window.frames['main'];
	  //frm.test();
	  document.getElementById("modelType").value=mi;
	  document.getElementById("modelName").value=mn;
	  //window.opener.location="/article/article.do";
  }
</script>
</head>

<body>
<div class="navi_text">
<img src="/images/litt.jpg"/><span class="navi_text">当前位置:手机管理->手机入库</span>
</div>
<div class="mobile_out_sheet">
<s:form action="mobout" namespace="/mobile" method="POST" theme="simple">
  <div class="mobile_th">手机调拨单信息</div>
  <table class="mobile_out_sheet_table" cellpadding="0" border="0" cellspacing="0" width="100%">
  <tr>
  <td align="right" width="20%">机型:</td>
  <td align="left" width="25%"><s:textfield id="modelName" name="modelName" size="30" disabled="true" value="请选择机型" /><s:hidden id="modelType" name="modelType"/></td>
  <td width="20%" align="right">出库数量:</td>
  <td width="25%"><s:textfield name="amount"/></td>
  <td width="10%"><s:submit value= "提交"/></td>
  </tr>
  <tr><td width="20%" align="right" >调出仓库:</td>
  <td align="left" width="25%"><s:label name="#session.USER_INFO.userName"/></td>
  <td align="right" width="20%">调入仓库:</td>
  <td align="left" width="25%"><s:textfield id="stock_name_new" name="stockNameNew" size="30" disabled="true" value="要调拨的仓库" /><s:hidden id="stock_id_new" name="stockIdNew"/></td>
  <td width="10%"><input type="button" value="选择仓位" onclick="queryDept()"/></td>
  </tr>
  </table>
  <div class="mobile_th">手机信息</div>
  <table class="mobile_out_detail_table" cellpadding="0" border="0" cellspacing="0" width="100%" style="margin-top:10px;">
  <tr>
    <th>操作<th>型号</td><th>名称</td><th>数量</th></tr>
    <s:iterator value="curList" status="count" >
    <s:if test="#count.odd">
     <tr >
               <td class="table_row_odd" align="center"><a href='#' onClick="selectMob('<s:property value="modelType" />','<s:property value="modelName" />')">选择</a></td>
               <td class="table_row_odd"><s:property value="modelType" /></td>
               <td class="table_row_odd"><s:property value="modelName" /></td>
               <td class="table_row_odd"><s:property value="amount" />
          </tr>
         </s:if>
         <s:else>
          <tr >
               <td class="table_row_even" align="center"><a href='#' onClick="selectMob('<s:property value="modelType" />','<s:property value="modelName" />')">选择</a></td>
               <td class="table_row_even"><s:property value="modelType" /></td>
               <td class="table_row_even"><s:property value="modelName" /></td>
               <td class="table_row_even"><s:property value="amount" />
          </tr>
         </s:else>
        </s:iterator>
  <tr>
    <td colspan="4">
    <table width="800px" bordercolor="#cccccc" cellpadding="0" cellspacing="0" border="0">
      <tr>
        <td width="300px"></td>
        <td width="100px">共<s:property value="maxPage"/>页<s:property value="totalCount"/>条记录</td>
        <td><s:submit action="xlsmobout" value="导出" /></td>
        <td><s:submit action="firstPagemobout" value="首页" /></td>
        <td><s:submit action="prioPagemobout" value="前一页" /></td>
        <td><s:textfield name="currPage" size="4" maxlength="4"/></td>
        <td><s:submit action="goToPagemobout" value="前往" /></td>
        <td><s:submit action="nextPagemobout" value="后一页" /></td>
        <td><s:submit action="lastPagemobout" value="最后一页"/></td>
      </tr>
  </table>
    </td>
  </tr>
  </table>
  
</s:form>
</div>
</body>
</html>